<template>
  <div>
    <el-button type="info" @click="exit">退出</el-button>
  </div>
</template>

<script>
  export default {
    name: "Home",
    methods: {
      exit() {
        //点击退出按钮时先退出token
        window.sessionStorage.clear()
        // 然后跳转到登录界面
        this.$router.push('/login')
      }
    }
  }
</script>

<style scoped>

</style>
